<!DOCTYPE html>
<html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>拾光校园授权协议</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <body>
        <div id="preview"> </div>
        <script src="../markdown.min.js"></script>
        <script src="../jquery.min.js"></script>
        <script>
            var md_url = 'campus_agreement.md';
           $.ajax({
                type:"get",
                url:md_url,
                dataType:"text",//text/xml/json，非必须
                success:function(data){//回调函数，非必须
                    if (!data.error) {
                        $("#preview").html(markdown.toHTML( data ));                        
                    }else{
                        alert(data.message);
                    };
                }
            });  

        </script>
    </body>
</html>